﻿namespace DotNet.WinForm.Utilities.Controls
{
    public class DotNetTextBox : DevExpress.XtraEditors.TextEdit
    {
        public DotNetTextBox()
        {
        }

        public bool UseVisualStyleBackColor { get; set; }

        private System.Drawing.ContentAlignment _align = System.Drawing.ContentAlignment.MiddleLeft;

        public System.Drawing.ContentAlignment TextAlign
        {
            get { return _align; }
            set { _align = value; }

        }    public bool Multiline { get; set; }

        public bool ReadOnly { get; set; }

        public System.Windows.Forms.ScrollBars ScrollBars { get; set; }

        public int MaxLength { get; set; }

        public bool UseSystemPasswordChar { get; set; }

        public char PasswordChar
        {
            get
            {
                return this.Properties.PasswordChar;
            }
            set
            {
                this.Properties.PasswordChar = value;
            }
        }

        public void Clear()
        {
            this.Text = "";
        }

        public void AppendText(string p)
        {
            this.Text = this.Text + p;
        }
    }
}